import globalvariable
def OnTick(marketdata,  strategyname):
    print(__name__)
    print('运行策略('+strategyname+'.py)： '+str(marketdata.contents.InstrumentID, encoding="utf-8")+ ',' +str(marketdata.contents.LastPrice))
    print( globalvariable.get_value('key1') + globalvariable.get_value('key2'))